<div class="menu">
    <ul id="admin_menu">
        <volist name="main_menu" id="menu_item" key="i">
            <if condition="$i eq 1">
                <li class="fisrt {:activedLink($key, null, 'fisrt_current')}" data-cls="fisrt_current">
                	<span><a href="{:U($menu_item['target'])}">{$menu_item['name']}</a></span>
                </li>
            <elseif condition="$i eq count($main_menu)" />
                <li class="end {:activedLink($key, null, 'end_current')}" data-cls="end_current">
                	<span><a href="{:U($menu_item['target'])}">{$menu_item['name']}</a></span>
                </li>
            <else />
                <li class="{:activedLink($key, null, 'current')}" data-cls="current">
                	<span><a href="{:U($menu_item['target'])}">{$menu_item['name']}</a></span>
                </li>
            </if>
        </volist>
    </ul>
</div>
<script type="text/javascript">
/*$("#admin_menu").find("li").hover(function(){
	var patt1 = new RegExp("current");
	if(patt1.test($(this).attr("class"))){
		$(this).attr('cur', 1);
		return false;
	}
	$(this).addClass($(this).data('cls'));
}, function(){
	var cur = $(this).attr('cur');
	if(cur == 1){
		return false;
	}
	$(this).removeClass($(this).data('cls'));
});*/
</script>